# author: hulingchuan@htomail.com
#
# LoggerSingleton
# a logger match singleton pattern

require 'singleton'
require 'logger'

class LoggerSingleton < Logger

  include Singleton

  @@old_initialize = Logger.instance_method :initialize
  def initialize
    @@old_initialize.bind(self).call(STDOUT)
  end

end